package com.ncwu.controller;

import com.ncwu.service.HistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: HistoryController
 * Package: com.ncwu.controller
 * Description:
 *
 * @Author Lidoudou
 * @Create 2025/1/8 22:00
 * @Version 1.0
 */
@RestController
@RequestMapping("/historys")
public class HistoryController {
    @Autowired
    private HistoryService historyService;

    @GetMapping
    public AjaxResult getAll(){
        return new AjaxResult(historyService.getAll(),Code.GET_OK,"获取历史预约记录成功");
    }
}
